<h3>
	Informações do Registro -
	<a href="<?php echo $this->basePath; ?>/cms/list/t/<?php echo $this->table['name']; ?>" title=""><?php echo $this->table['alias']; ?></a>
</h3>
<a href="<?php echo $this->basePath; ?>/cms/edit/t/<?php echo $this->params['t']; ?>/c/<?php echo $this->params['c']; ?>/v/<?php echo $this->params['v']; ?>" title="Editar">Editar</a>
<a href="<?php echo $this->basePath; ?>/cms/delete/t/<?php echo $this->params['t']; ?>/c/<?php echo $this->params['c']; ?>/v/<?php echo $this->params['v']; ?>" title="Excluir">Excluir</a>
<table>
	<tbody>
		<?php foreach($this->columns as $column => $params) { ?>
			<?php if($column == 'ID') { ?>
				<?php foreach($params as $pkColumn => $pkParams) { ?>
					<tr>
						<td style="white-space: nowrap;"><?php echo $pkParams['name']; ?></td>
						<td style="width: 100%;"><?php echo $this->data[$pkColumn]; ?></td>
					</tr>
				<?php } ?>
			<?php } else { ?>
				<tr>
					<td style="white-space: nowrap;"><?php echo $params['name']; ?></td>
					<td style="width: 100%;">
						<?php if(is_array($this->data[$column])) { ?>
							<?php if(isset($this->data[$column]['ref'])) { ?>
								<a href="<?php echo $this->basePath; ?>/cms/detail/t/<?php echo $this->data[$column]['table']; ?>/c/<?php echo key($this->data[$column]['ref']); ?>/v/<?php echo current($this->data[$column]['ref']); ?>" target="_blank"><?php echo $this->data[$column]['repCol']; ?></a>
							<?php } else { ?>
								<!-- NM Data -->
								<ul>
									<?php foreach($this->data[$column] as $data) { ?>
										<li>
											<a href="<?php echo $this->basePath; ?>/cms/detail/t/<?php echo $data['table']; ?>/c/<?php echo key($data['ref']); ?>/v/<?php echo current($data['ref']); ?>" title="Exibir este registro" target="_blank"><?php echo $data['repCol']; ?></a>
										</li>
									<?php } ?>
								</ul>
							<?php } ?>
						<?php } else { ?>
							<?php if(is_bool($this->data[$column])) { ?>
								<?php echo ((bool) $this->data[$column]) ? 'Sim' : 'Não'; ?>
							<?php } elseif(empty($this->data[$column])) { ?>
								Não informado
							<?php } else { ?>
								<?php echo $this->data[$column]; ?>
							<?php } ?>
						<?php } ?>
					</td>
				</tr>
			<?php } ?>
		<?php } ?>
	</tbody>
</table>